package com.dhl.factory.simplefactory.traffic;

import com.dhl.factory.simplefactory.traffic.factory.CarFactory;
import com.dhl.factory.simplefactory.traffic.factory.PlaneFactory;

public class SimpleFactoryClient {
    public static void main(String[] args) {
        Traffic bigTrucks = CarFactory.getBigTrucks();
        bigTrucks.run();
        bigTrucks.stop();
        Traffic lamborghini = CarFactory.getLamborghini();
        lamborghini.run();
        lamborghini.stop();


        Traffic airliner = PlaneFactory.getAirliner();
        airliner.run();
        airliner.stop();
        Traffic fighterPlane = PlaneFactory.getFighterPlane();
        fighterPlane.run();
        fighterPlane.stop();
    }
}
